package com.liveinstars.api.im.vo;

import com.google.common.collect.Lists;
import lombok.Data;

import java.util.List;

/**
 * @author: zhouze
 * @date: 2020/3/20
 */
@Data
public class TradePairVO {

    /**
     * 交易对查询值
     */
    private String tradePair;

    /**
     * 交易所查询值
     */
    private String exchange;

    /**
     * logo
     */
    private String logo;

    public void mock(){
        this.setTradePair("btc_usd");
        this.setExchange("huobipro");
        this.setLogo("https://appserversrc.8btc.com/coin_info/img/BTC-Bitcoin.svg");
    }

    public static List<TradePairVO> mockList(){
        List<TradePairVO> list = Lists.newArrayList();
        TradePairVO pairVO = new TradePairVO();
        pairVO.mock();
        list.add(pairVO);
        pairVO = new TradePairVO();
        pairVO.setTradePair("etc_usd");
        pairVO.setLogo("https://appserversrc.8btc.com/coin_info/img/ETH-Ethereum.svg");
        pairVO.setExchange("huobipro");
        list.add(pairVO);
        pairVO = new TradePairVO();
        pairVO.setTradePair("eos_usd");
        pairVO.setLogo("https://appserversrc.8btc.com/coin_info/img/EOS-EOS.svg");
        pairVO.setExchange("huobipro");
        list.add(pairVO);
        pairVO = new TradePairVO();
        pairVO.setTradePair("btm_usd");
        pairVO.setLogo("https://appserversrc.8btc.com/coin_info/img/BTM-Bytom.svg");
        pairVO.setExchange("huobipro");
        list.add(pairVO);
        return list;
    }
}
